<html>
    <head>
    <title>WebGL CG2 Project; Sponsored by Four Loko</title>
    
    <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
    
    <script type="text/javascript" src="math/glMatrix-0.9.5.min.js"></script>
	<script type="text/javascript" src="math/webgl-utils.js"></script> 
    <script type="text/javascript" src="ourcode/CollisionController.js"></script>
    <script type="text/javascript" src="ourcode/KeyboardController.js"></script>
    <script type="text/javascript" src="ourcode/Particle.js"></script>
    <script type="text/javascript" src="ourcode/ParticleController.js"></script>
    <script type="text/javascript" src="ourcode/ParticleSystem.js"></script>
    <script type="text/javascript" src="ourcode/Plane.js"></script>
    <script type="text/javascript" src="ourcode/WorldController.js"></script>
    <script type="text/javascript" src="ourcode/Vector.js"></script>
    <script type="text/javascript" src="ourcode/fire.js"></script>
    
    <script id="shader-fs" type="x-shader/x-fragment">
        #ifdef GL_ES
        precision highp float;
        #endif
    
        varying vec4 vColor;
    
        void main(void) {
            gl_FragColor = vColor;
        }
    </script>
    
    <script id="shader-vs" type="x-shader/x-vertex">
        attribute vec3 aVertexPosition;
        attribute vec4 aVertexColor;
    
        uniform mat4 uMVMatrix;
        uniform mat4 uPMatrix;
    
        varying vec4 vColor;
    
        void main(void) {
            gl_Position = uPMatrix * uMVMatrix * vec4(aVertexPosition, 1.0);
            vColor = aVertexColor;
        }
    </script>    
    </head>


    <body onLoad="webGLStart();">
        <canvas id="lesson02-canvas" style="border: none;" width="250" height="400"></canvas>
    </body>

</html>

